package cn.mrlong.recordnote

import com.intellij.openapi.project.Project
import com.intellij.openapi.ui.DialogWrapper
import javax.swing.JComponent

class FormTestDialog(project: Project?) : DialogWrapper(project) {
    private val projectName: String

    //swing样式类，定义在4.3.2
    private val formTestSwing = UIDemo()

    init {
        title = "表单测试~~"
        this.projectName = project!!.name
        init() //触发一下init方法，否则swing样式将无法展示在会话框
    }

    override fun createCenterPanel(): JComponent? {
        return formTestSwing.mainPanel
    }
}
